package com.qzsoft.zhjd.laboratory.modules.laboratoryfurnace.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzsoft.zhjd.laboratory.modules.laboratoryfurnace.dto.LaboratoryFurnaceDayDto;
import com.qzsoft.zhjd.laboratory.modules.laboratoryfurnace.dto.LaboratoryFurnaceDto;
import com.qzsoft.zhjd.laboratory.modules.laboratoryfurnace.dto.LaboratoryFurnaceResultDto;
import com.qzsoft.zhjd.laboratory.modules.laboratoryfurnace.dto.LaboratoryFurnaceValueDto;
import com.qzsoft.zhjd.laboratory.modules.laboratoryfurnace.entity.LaboratoryFurnaceEntity;

/**
 * @ClassName LaboratoryFurnaceMapper
 * @Description 燃烧炉数据库接口
 * @author linhuawei
 * @since 2022-04-18
 */
@Mapper
public interface LaboratoryFurnaceMapper extends BaseMapper<LaboratoryFurnaceEntity> {

    /**
     * @Title queryDto
     * @Description 获取分页数据
     * @param page   分页条件
     * @param params 查询条件
     * @return 获取分页数据
     */
    public IPage<LaboratoryFurnaceDto> queryDto(IPage<LaboratoryFurnaceDto> page,
            @Param("params") Map<String, Object> params);

    /**
     * @Title countByResult
     * @Description 统计试验结果
     * @param params 查询条件
     * @return 试验结果
     */
    public LaboratoryFurnaceResultDto countByResult(@Param("params") Map<String, Object> params);

    /**
     * @Title countByResultForDay
     * @Description 按照天汇总试验结果数据
     * @param params 查询条件
     * @return 试验结果数据
     */
    public List<LaboratoryFurnaceDayDto> countByResultForDay(@Param("params") Map<String, Object> params);

    /**
     * @Title listForAsphaltAggregateRatio
     * @Description 油石比数据
     * @param params 查询条件
     * @return 油石比数据
     */
    public List<LaboratoryFurnaceValueDto> listForAsphaltAggregateRatio(@Param("params") Map<String, Object> params);

}
